package com.itheima04;

import java.io.*;

public class Test02 {
    public static void main(String[] args) throws IOException {

        long start = System.currentTimeMillis();
        BufferedInputStream bis=new BufferedInputStream(new FileInputStream("C:\\Users\\阳光正直夏明伟15805655221\\Desktop\\截图\\03-飞秋  (资料共享软件).exe"));
        BufferedOutputStream bos=new BufferedOutputStream(new FileOutputStream("C:\\Users\\阳光正直夏明伟15805655221\\Desktop\\截图\\测试.exe"));

        int c;
        while ((c=bis.read())!=-1){
            bos.write(c);
        }
        bis.close();
        bos.close();
        long end=System.currentTimeMillis();
        System.out.println(end-start);
    }
}
